Optimal. Leaf size=76 \[ \frac{i \sqrt{2} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}-\frac{2 i (a+i a \tan (c+d x))^{3/2}}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.079921, antiderivative size = 76, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {3543, 3480, 206} \[ \frac{i \sqrt{2} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}-\frac{2 i (a+i a \tan (c+d x))^{3/2}}{3 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3543
Rule 3480
Rule 206
Rubi steps
\begin{align*} \int \tan ^2(c+d x) \sqrt{a+i a \tan (c+d x)} \, dx &=-\frac{2 i (a+i a \tan (c+d x))^{3/2}}{3 a d}-\int \sqrt{a+i a \tan (c+d x)} \, dx\\ &=-\frac{2 i (a+i a \tan (c+d x))^{3/2}}{3 a d}+\frac{(2 i a) \operatorname{Subst}\left (\int \frac{1}{2 a-x^2} \, dx,x,\sqrt{a+i a \tan (c+d x)}\right )}{d}\\ &=\frac{i \sqrt{2} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}-\frac{2 i (a+i a \tan (c+d x))^{3/2}}{3 a d}\\ \end{align*}
Mathematica [A] time = 0.633703, size = 97, normalized size = 1.28 \[ -\frac{i e^{-i (c+d x)} \left (4 e^{3 i (c+d x)}-3 \left (1+e^{2 i (c+d x)}\right )^{3/2} \sinh ^{-1}\left (e^{i (c+d x)}\right )\right ) \sqrt{a+i a \tan (c+d x)}}{3 d \left (1+e^{2 i (c+d x)}\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.039, size = 58, normalized size = 0.8 \begin{align*}{\frac{-2\,i}{ad} \left ({\frac{1}{3} \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{{\frac{3}{2}}}}-{\frac{\sqrt{2}}{2}{a}^{{\frac{3}{2}}}{\it Artanh} \left ({\frac{\sqrt{2}}{2}\sqrt{a+ia\tan \left ( dx+c \right ) }{\frac{1}{\sqrt{a}}}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.27472, size = 711, normalized size = 9.36 \begin{align*} -\frac{3 \, \sqrt{2}{\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt{-\frac{a}{d^{2}}} \log \left ({\left (i \, \sqrt{2} d \sqrt{-\frac{a}{d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} + \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) - 3 \, \sqrt{2}{\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt{-\frac{a}{d^{2}}} \log \left ({\left (-i \, \sqrt{2} d \sqrt{-\frac{a}{d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} + \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) + 8 i \, \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (3 i \, d x + 3 i \, c\right )}}{6 \,{\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (i \tan{\left (c + d x \right )} + 1\right )} \tan ^{2}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]